<!DOCTYPE html>
<html>
<head>
<?php include_once VIEWS.'inc/head.php'; ?>
</head>
<body style="overflow-y: hidden;">
	<div class="load-page js-win-h">
		<div class="logo-box">
			<div class="top">
				<div class="border-top"></div>
				<div class="border-btm"></div>
				<div class="border-btm2"></div>
				<div class="border-left"></div>
				<div class="border-right"></div>
				<img class="logo-text" src="<?php echo static_file('web/img/logo-text.png'); ?>">
			</div>
			<div class="btm">
				
			</div>
		</div>
	</div>
	<div class="main welc js-win-h">
		<?php include_once VIEWS.'inc/header.php'; ?>
		<div class="scroll-box js-wrapBox">
			<div class="wrap">
				<div class="img-box js-imgUl f-cb">
				
<!--					<a class="js-imgLi pull-left" href="<?php //if(!empty($banner[0]['link'])):?><?php //echo $banner[0]['link'];?><?php //endif;?>" >
						<img src="<?php //if(!empty($banner[0])):?><?php //echo UPLOAD_URL.tag_photo($banner[0]['photo']); ?><?php //endif;?>">
						<div class="text"><p>生活/居家</p></div> 
 					</a> 
					<a class="js-imgLi pull-left" href="<?php //if(!empty($banner[1]['link'])):?><?php //echo $banner[1]['link'] ?><?php //endif;?>" >
						<img src="<?php //if(!empty($banner[1])):?><?php //echo UPLOAD_URL.tag_photo($banner[1]['photo']); ?><?php //endif;?>">
						<div class="text"><p>生活/居家</p></div>
					</a> 
					<a class="js-imgLi pull-left" href="<?php //if(!empty($banner[2]['link'])):?><?php //echo $banner[2]['link'] ?><?php //endif;?>" >
						<img src="<?php //if(!empty($banner[2])):?><?php //echo UPLOAD_URL.tag_photo($banner[2]['photo']); ?><?php //endif;?>">
						<div class="text"><p>生活/居家</p></div>
					</a> -->
					
					<a class="js-imgLi pull-left" href="<?php echo site_url('product/index');?>" >
						<img src="<?php if(!empty($banner[0])):?><?php echo UPLOAD_URL.tag_photo($banner[0]['photo']); ?><?php endif;?>">
						<!-- <div class="text"><p>生活/居家</p></div> -->
					</a>
					<a class="js-imgLi pull-left" href="<?php echo site_url('product/index1');?>" >
						<img src="<?php if(!empty($banner[1])):?><?php echo UPLOAD_URL.tag_photo($banner[1]['photo']); ?><?php endif;?>">
						<!-- <div class="text"><p>生活/居家</p></div> -->
					</a>
					<a class="js-imgLi pull-left" href="<?php echo site_url('product/index2');?>" >
						<img src="<?php if(!empty($banner[2])):?><?php echo UPLOAD_URL.tag_photo($banner[2]['photo']); ?><?php endif;?>">
						<!-- <div class="text"><p>生活/居家</p></div> -->
					</a>
					
				</div>
			</div>
			<ul class="num js-point f-cb">
				<li class="cur pull-left"></li>
				<li class="pull-left"></li>
				<li class="pull-left"></li>
			</ul>
			<div class="js-btn-box btn-box">
				<div class="btn-list list3" style="display:block;">
					<div class="btn left js-left"><i class="iconfont">&#xe605;</i></div>
					<div class="btn right js-right"><i class="iconfont">&#xe606;</i></div>	
				</div>
				<div class="btn-list list2">
					<div class="btn left js-left"><i class="iconfont">&#xe605;</i></div>
					<div class="btn right js-right"><i class="iconfont">&#xe606;</i></div>	
				</div>
				<div class="btn-list list1">
					<div class="btn left js-left"><i class="iconfont">&#xe605;</i></div>
					<div class="btn right js-right"><i class="iconfont">&#xe606;</i></div>	
				</div>
			</div>

			<?php include_once VIEWS.'inc/footer.php'; ?>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	window.onload=function(){
		$('.js-imgUl').height($('.js-imgUl .js-imgLi:first').height());
	}
	$(function(){
		$('.js-imgUl .js-imgLi:first').css({
			opacity: 1,
			zIndex: 51
		});
		//取得cookie  
		function getCookie(name) {  
		 var nameEQ = name + "=";  
		 var ca = document.cookie.split(';');    //把cookie分割成组  
		 for(var i=0;i < ca.length;i++) {  
		 var c = ca[i];                      //取得字符串  
		 while (c.charAt(0)==' ') {          //判断一下字符串有没有前导空格  
		 c = c.substring(1,c.length);      //有的话，从第二位开始取  
		 }  
		 if (c.indexOf(nameEQ) == 0) {       //如果含有我们要的name  
		 return unescape(c.substring(nameEQ.length,c.length));    //解码并截取我们要值  
		 }  
		 }  
		 return false;  
		}  
		  
		//清除cookie  
		function clearCookie(name) {  
		 setCookie(name, "", -1);  
		}  
		  
		//设置cookie  
		function setCookie(name, value, seconds) {  
		 seconds = seconds || 0;   //seconds有值就直接赋值，没有为0，这个根php不一样。  
		 var expires = "";  
		 if (seconds != 0 ) {      //设置cookie生存时间  
		 var date = new Date();  
		 date.setTime(date.getTime()+(seconds*1000));  
		 expires = "; expires="+date.toGMTString();  
		 }  
		 document.cookie = name+"="+escape(value)+expires+"; path=/";   //转码并赋值  
		}
		if(getCookie('loading')){
			$('.load-page').hide();
			$('.welc').animate({
				opacity: 1
			});
			autoImg('.js-wrapBox',3000,1,true,true,false);
		}else{
			$('.load-page .logo-box .logo-text').delay(500).animate({
				opacity: 1
			},1000,function(){
				$('.load-page .logo-box .border-btm').animate({
					width: 67
				},600,'linear',function(){
					$('.load-page .logo-box .border-left').animate({
						height: 88
					},700,'linear',function(){
						$('.load-page .logo-box .border-top').animate({
							width: 90
						},700,'linear',function(){
							$('.load-page .logo-box .border-right').animate({
								height: 88
							},700,'linear',function(){
								$('.load-page .logo-box .border-btm2').animate({
									width: 7
								},200,'linear',function(){
									$('.load-page .logo-box .btm').animate({
										width: 90
									},700,'linear',function(){
										$('.load-page .logo-box').animate({
											opacity: 0
										},400,'linear',function(){
												$('.load-page').hide();
												$('.welc').animate({
													opacity: 1
												});
												setCookie("loading",1,1200);
												autoImg('.js-wrapBox',3000,1,true,true,false);
											}
										);
									});
								});
							});
						});
					});
				});
			});
		}
		
		$('.js-nar-bar .link').eq(0).addClass('cur');
	});
</script>